package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SimMallOrder;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 商城订单视图对象 sim_mall_order
 *
 * @author Lion Li
 * @date 2025-08-15
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SimMallOrder.class)
public class SimMallOrderVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long userId;

    /**
     * 订单编号
     */
    @ExcelProperty(value = "订单编号")
    private String orderNo;

    /**
     * 商品id
     */
    @ExcelProperty(value = "商品id")
    private Long commodityId;

    /**
     * 物流订单号
     */
    @ExcelProperty(value = "物流订单号")
    private String logisticsNo;

    /**
     * 数量
     */
    @ExcelProperty(value = "数量")
    private Integer number;

    /**
     * 订单总金额
     */
    @ExcelProperty(value = "订单总金额")
    private BigDecimal amount;

    //订单单价
    private BigDecimal orderUnitPrice;

    /**
     * 订单状态
     */
    @ExcelProperty(value = "订单状态")
    private Integer status;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    private String address;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private Date createTime;

    private String userName;

    private String nickName;

    private String realName;

    private String commodityTitle;

    private String commodityLogo;

    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "commodityLogo")
    private String commodityLogoUrl;

    private String commodityPrice;

}
